/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const memorySpaceRouter = {
  path: '/memory-space',
  component: Layout,
  redirect: '/memory-space/list',
  name: 'MemorySpace',
  meta: {
    title: 'Memory Space',
    icon: 'storage'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/usr/memory-space/create'),
      name: 'CreateMemorySpace',
      meta: { title: 'Create Space', icon: 'edit' },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/usr/memory-space/edit'),
      name: 'EditMemorySpace',
      meta: {
        title: 'Edit Memory Space',
        activeMenu: '/memory-space/list'
      },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/usr/memory-space/list'),
      name: 'MemorySpaceList',
      meta: { title: 'Memory Space', icon: 'net-disk' }
    },
    {
      path: 'space-home/:id',
      component: () => import('@/views/usr/logic-file/index'),
      name: 'SpaceHome',
      meta: { title: 'Space Home', icon: 'list' },
      hidden: true
    },
    {
      path: 'all-file',
      component: () => import('@/views/usr/logic-file/list'),
      name: 'AllFile',
      meta: { title: 'All Files', icon: 'list' }
    }
  ]
}

export default memorySpaceRouter
